//
//  HJSystemMsgCell.m
//  project
//
//  Created by hu on 2019/4/1.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJSystemMsgCell.h"
#import "HJSystemMsgVC.h"
@implementation HJSystemMsgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    [self.avator rounded:UIRectCornerAllCorners radius:20 borderColor:[UIColor blackColor] borderWidth:1];
}
-(void)setModel:(HJSystemModel *)model {
    _model = model;
    [self.avator sd_setImageWithURL:[NSURL URLWithString:model.user.avatar]];
    self.systemTitle.text = model.content;//[NSString stringWithFormat:@"%@ %@", model.user.nickName , ]
    self.systemTime.text = model.time;
    self.systemTitle.textColor = model.isRead ? [UIColor colorWithHex:0x999999] : [UIColor colorWithHex:0x000000];
    
}

@end

